<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

function toLogin(type: string) {
  console.log(type)
  router.push('/login')
}
</script>
  
<template>
  <h3>我是注册页面</h3>
  <div>
    <button type="button" @click="() => toLogin('返回')">返回</button>&nbsp;
    <button type="button" @click="() => toLogin('注册成功，去登陆')">注册成功，去登陆</button>
  </div>
</template>
  
<style scoped>
</style>
  